// unordered_map
// Created by FanGccU on 2025/6/23.
// 和 map 的区别：不保证key的顺序

#include <iostream>
#include <unordered_map>
using namespace std;


int main(int argc, char *argv[]) {
    // 定义一个学生map
    unordered_map<int, string> student = {{1, "张三"}, {2, "李四"}, {3, "王五"}};

    for (const auto &[fst, snd]: student) {
        cout << fst << " " << snd << endl;
    }

    // 访问指定值
    cout << student[1] << endl;
}
